home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample SMSAM / SampleSMSAM Source / SampleSMSAMDETemplate / SpecificAddress.r < prev   
Encoding:
Text File  |  1995-07-28  |  3.0 KB  |  109 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SpecificAddress.r
  3.  
  4.     Copyright:    © 1991-1994 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Part of the AOCE Sample SMSAM Package.  Consult the license
  8.     which came with this software for your specific legal rights.
  9.  
  10. */
  11.  
  12.  
  13.  
  14. /*
  15.  
  16. BASED ON:
  17.  
  18.   ####################################################################
  19.   Internet PMSAM Sample Address Template
  20.   1.0b1 version
  21.   
  22.   Steve Falkenburg
  23.   MacDTS 2/11/93
  24.   AppleLink DEVSUPPORT for questions (if you're a supported seed site)  
  25.   ####################################################################
  26.   
  27.   this file contains the PMSAM specific information for the address template
  28.   you should only have to modify this file and not InternetDET.r to get
  29.   things working for your PMSAM address template
  30.   
  31.   to build:
  32.  
  33.   Rez -i "{CIncludes}" "GenericAddress.r" -append -o InternetAddress
  34.   SetFile -t 'detf' InternetAddress
  35.  
  36. */
  37.  
  38.  
  39. #ifndef __TYPES__
  40. #include "Types.r"
  41. #endif
  42.  
  43. #ifndef __OCE.R__
  44. #include "OCE.r"
  45. #endif
  46.  
  47. #ifndef __OCE__
  48. #include "OCE.h"
  49. #endif
  50.  
  51. #ifndef __OCETEMPLATES__
  52. #include "OCETemplates.h"
  53. #endif
  54.  
  55.  
  56. // ### names used in templates ################################################################
  57. //
  58. // note: to insure no collisions in DET name space, please pre-pend
  59. //       any template names with your 4 character creator, which
  60. //       should be registered through DTS.
  61.  
  62. #define kSignature                'ALNK'                        // address type
  63. #define kAspectTemplateName        "ALNK_AddressAspect"        // aspect name
  64. #define    kInfoPageTemplateName    "ALNK_AddressInfoPage"        // info page name
  65.  
  66. // names which could be displayed
  67.  
  68. #define    kAspectKind                "Address"                    // aspect kind
  69. #define    kNewMenuName            "AppleLink Address"            // address menu item title
  70. #define    kPopUpTitle                "AppleLink"                    // pop-up menu title
  71.  
  72.  
  73. // ### default aspect new value corresponding to dett from other file #######################
  74.  
  75.  
  76. resource 'detb' (kAddressAspect+kDETAspectNewValue, purgeable) {
  77.     kSignature,
  78.     kSignature,
  79.     "AppleLink",                    // directory name
  80.     kSignature,
  81.     "<User name>",                    // name of user (in sublist)
  82.     kUserRecTypeBody,                // type of record
  83.     "<AppleLinkAddress>"            // extension value (our address)
  84. };
  85.  
  86.  
  87. //    Include all of the appropriate icon suite resources
  88. #define ICONID    (kAddressAspect+kDETAspectMainBitmap)
  89. include $$SHELL("BLJBovineServer")"BovineServerIcons.rsrc" 'ICN#' (200) as 'ICN#' (ICONID);
  90. include $$SHELL("BLJBovineServer")"BovineServerIcons.rsrc" 'icl8' (200) as 'icl8' (ICONID);
  91. include $$SHELL("BLJBovineServer")"BovineServerIcons.rsrc" 'icl4' (200) as 'icl4' (ICONID);
  92. include $$SHELL("BLJBovineServer")"BovineServerIcons.rsrc" 'ics8' (200) as 'ics8' (ICONID);
  93. include $$SHELL("BLJBovineServer")"BovineServerIcons.rsrc" 'ics4' (200) as 'ics4' (ICONID);
  94. include $$SHELL("BLJBovineServer")"BovineServerIcons.rsrc" 'SICN' (200) as 'SICN' (ICONID);
  95. include $$SHELL("BLJBovineServer")"BovineServerIcons.rsrc" 'ics#' (200) as 'ics#' (ICONID);
  96.  
  97.  
  98.  
  99. data 'FREF' (128) {
  100.     $"6465 7466 0000 7F"                                  /* detf... */
  101. };
  102.  
  103. resource 'BNDL' (128) {
  104.     'ALNK', 0,
  105.     {    'FREF', { 0, 128 },
  106.         'ICN#',    { 0, ICONID }
  107.     }
  108. };
  109.